package com.android.infantschool.bean;

import java.util.Arrays;
import java.util.List;

/**
 * @author Administrator
 * @particulars
 * @time 2019\7\8 0008 9:03
 * @class describe
 */
public class PatriarchBean extends BaseBean {


    /**
     * code : 0
     * count : 0
     * msg : success
     * data : [{"id":15,"content":"作业太少了","add_time":"2019-07-23 15:06:32","name":"李家长","description":"http://pubgwqeja.bkt.clouddn.com/yoon.jpg"},{"id":16,"content":"测试添加","add_time":"2019-07-24 17:15:35","name":"王家长","description":"http://pubgwqeja.bkt.clouddn.com/yoon.jpg"}]
     */

    private int code;
    private int count;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 15
         * content : 作业太少了
         * add_time : 2019-07-23 15:06:32
         * name : 李家长
         * description : http://pubgwqeja.bkt.clouddn.com/yoon.jpg
         */

        private int id;
        private String content;
        private String add_time;
        private String name;
        private String description;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getAdd_time() {
            return add_time;
        }

        public void setAdd_time(String add_time) {
            this.add_time = add_time;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id=" + id +
                    ", content='" + content + '\'' +
                    ", add_time='" + add_time + '\'' +
                    ", name='" + name + '\'' +
                    ", description='" + description + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "PatriarchBean{" +
                "code=" + code +
                ", count=" + count +
                ", msg='" + msg + '\'' +
                ", data=" + Arrays.toString(data.toArray()) +
                '}';
    }
}